package com.zhiy.com.estation.ui.fragment.find.back.password;

import com.zhiy.com.estation.api.ApiResult;
import com.zhiy.com.estation.model.User;
import com.zhiy.com.estation.ui.base.BaseModel;
import com.zhiy.com.estation.ui.base.BasePresenter;
import com.zhiy.com.estation.ui.base.BaseView;
import com.zhiy.com.estation.ui.fragment.login.LoginContract;

import io.reactivex.Flowable;

/**
 * 契约类--通过父类达成契约
 * Created by Zyh on 2016/12/3.
 */
public interface FindPassContract {
    interface Model extends BaseModel {
        Flowable<ApiResult<User>> findBacPass(String name);
    }
    interface View extends BaseView {
        public abstract void isSuccess(User user);
        public abstract void showMsg(String msg);
        public abstract void isFailure();
    }
    public abstract class Presenter extends BasePresenter<Model, View> {
        protected abstract void findPassword(String name);
    }

}
